<?php
class User{
	function User(){
		include("user.methodTable.php");
		include("database.php");
	}
	function loginUser($email, $password){
		if (isset($email) && isset($password)) {
			$WHERE = " WHERE email='{$email}' AND password='{$password}'";
			$sql = "SELECT userId FROM user $WHERE";
			$query = mysql_query($sql);
			$num_rows = mysql_num_rows($query);
			if ($num_rows == 1) {
				return $query;
			} else return false;
		} else return false;
	}
}
?>